package cn.zzqayy.steward.gateway.controller;

import cn.zzqayy.steward.gateway.api.IHelloService;
import cn.zzqayy.steward.ResultJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    private IHelloService iHelloService;

    @PostMapping("hello")
    public ResultJson hello(){
        ResultJson hello = iHelloService.hello();
        return hello;
    }

}
